/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.report.bean;

public class ReportFactory {

    public Report produce(String type) {
        if ("deptBudgetReport".equals(type)) {
            return new DeptBudgetReport1();
        } else if ("govProcureReport".equals(type)) {
            return new GovProcureReport();
        } else {
            System.out.println("请输入正确的类型!");
            return null;
        }
    }
}
